var urlCpnIllustrate = server_host + '/uweb/coupon/userCouponDetail.do';

var appModule = angular.module('CouponIllustrate',[]);

appModule.controller('CpnIllustrateCtrl',['$scope', '$http',function($scope,$http){


	$scope.loadIllustrate = function(){
		var couponId = getParameterByName('couponId');
		$http.get(urlCpnIllustrate + '?couponId=' + couponId).success(function(data, status, headers, config){
			console.log(data);
			$scope.illustrateInfo = data;

			// var obj = $scope.illustrateInfo.data;
			// $scope.arr = [];
			// for(property in obj){
			// 	$scope.arr.push({shopName:property});
			// }
			// $scope.shopNameArr = $scope.arr;
		})
	}

	$scope.loadIllustrate();
}])